package cn.edu.nyist.integration.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 积分消费详情表
 */
public class IntegralItem  implements Serializable {
    private Integer detailId;

    //避免400添加一个冗余字段
    private int categoryId;


//用户名

    private String username;

    //购买商品数量

    private Integer quantity;

    //单个商品的积分

    private Integer productScore;

    //商品名称

    private String productName;

    //这次消费获取的积分总量

    private Integer integralSum;

    private Date createTime;
    private Date updateTime;

    public IntegralItem() {
    }




    public int getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(int categoryId) {
        this.categoryId = categoryId;
    }

    public IntegralItem(Integer detailId, int categoryId, String username,
                        Integer quantity, Integer productScore, String productName,
                        Integer integralSum, Date createTime, Date updateTime) {
        this.detailId = detailId;
        this.categoryId = categoryId;
        this.username = username;
        this.quantity = quantity;
        this.productScore = productScore;
        this.productName = productName;
        this.integralSum = integralSum;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "IntegralItem{" +
                "detailId=" + detailId +
                ", categoryId=" + categoryId +
                ", username='" + username + '\'' +
                ", quantity=" + quantity +
                ", productScore=" + productScore +
                ", productName='" + productName + '\'' +
                ", integralSum=" + integralSum +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Integer getProductScore() {
        return productScore;
    }

    public void setProductScore(Integer productScore) {
        this.productScore = productScore;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getIntegralSum() {
        return integralSum;
    }

    public void setIntegralSum(Integer integralSum) {
        this.integralSum = integralSum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
